package pri.damai.xiaowu.seckilling.server;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import pri.damai.xiaowu.order.client.OrderRpcClient;
import pri.damai.xiaowu.seckilling.server.external.SkuServiceClient;


@EnableConfigurationProperties
@EnableDiscoveryClient
@SpringBootApplication
@EnableFeignClients(clients = {SkuServiceClient.class})
@EnableDubbo(scanBasePackageClasses = OrderRpcClient.class)
public class SeckillingApplication {

    public static void main(String[] args) {
        SpringApplication.run(SeckillingApplication.class, args);
    }

}
